<?php
/*
	插件概览
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	//显示统计数据
	$daytime = mktime(0,0,0,date('m'),date('d'),date('Y'));
	$data['juese3']=pdo_count('jy_yxw_worker',array('uniacid'=>$_SESSION['uniacid'],'juese'=>array(3,4)));
	$data['juese5']=pdo_count('jy_yxw_worker',array('uniacid'=>$_SESSION['uniacid'],'juese'=>array(5,6)));
	$data['juese9']=pdo_count('jy_yxw_worker',array('uniacid'=>$_SESSION['uniacid'],'juese'=>array(9,10,11,12,13)));
	$data['jueseall']=pdo_count('jy_yxw_worker',array('uniacid'=>$_SESSION['uniacid'],'status'=>1));
	$htmls=array(
		array('type'=>'data','num'=>12,'one_num'=>3,'title'=>'员工数据','datas'=>array(
			array('title'=>'客服前台','data'=>$data['juese3']),
			array('title'=>'电客/销售员','data'=>$data['juese5']),
			array('title'=>'售后部','data'=>$data['juese9']),
			array('title'=>'总员工','data'=>$data['jueseall']),
		)),
	);
	$return['htmls']=$htmls;
	exi($return);
}